package com.cntcdt.api.service.impl;

import java.util.List;

import com.cntcdt.api.db.dao.DeviceChargeDao;
import com.cntcdt.api.db.model.DeviceChargeModel;
import com.cntcdt.api.service.DeviceChargeService;

public class DeviceChargeServiceImpl implements DeviceChargeService {

	@Override
	public DeviceChargeModel findByDeviceId(Integer deviceChargeId) {
		return DeviceChargeDao.getInstance().findByDeviceId(deviceChargeId);
	}

	@Override
	public DeviceChargeModel findById(Integer deviceChargeId) {
		return DeviceChargeDao.getInstance().findByPrimaryKey(deviceChargeId);
	}

	@Override
	public List<DeviceChargeModel> findByPage(int sortTime) {
		return DeviceChargeDao.getInstance().findByPage(sortTime);
	}
	
	

}
